package com.back.campus_back.service;

import com.back.campus_back.domain.Carousel;
import com.back.campus_back.domain.User;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-04-25
 */
public interface CarouselService extends IService<Carousel> {

    //查询轮播图
    public List<Carousel> selectCarousel();

    //根据id修改轮播图
    public String updateCarousel(Carousel carousel);

    //根据id删除轮播图
    public String deleteCarousel(Integer carouselId);

    //根据id查询
    public Carousel findCarouselById(Integer carouselId);

    //分页查询
    public IPage<Carousel> findByCarousel(Integer current, Integer size);
}
